Previously color configuration only affected stdout, not stder as well.
Closes #2734
}
pub fn set_color_config(&mut self, color: Option<&str>) -> CargoResult<()> {
- self.out.set_color_config(match color {
+ let cfg = match color {
Some("auto") => Auto,
Some("always") => Always,
Some("never") => Never,
Some(arg) => bail!("argument for --color must be auto, always, or \
never, but found `{}`", arg),
- });
+ };
+ self.out.set_color_config(cfg);
+ self.err.set_color_config(cfg);
Ok(())
}